package com.bruceewu.galleryphoto.utis;

public class SharedPreferenceHelper {

    public static void putTime(int time) {
        SharePreferenceUtils.put("time", time);
    }

    public static int getTime() {
        return SharePreferenceUtils.getInt("time");
    }

    public static void putLastDir(String path) {
        SharePreferenceUtils.put("last_dir", path);
    }

    public static String getLastDir() {
        return SharePreferenceUtils.getString("last_dir");
    }

    public static void putLastFile(String path) {
        SharePreferenceUtils.put("last_img", path);
    }

    public static String getLastFile() {
        return SharePreferenceUtils.getString("last_img");
    }

    public static void putShowIndicator(boolean show) {
        SharePreferenceUtils.put("show_indicator", show);
    }

    public static boolean getShowIndicator() {
        return SharePreferenceUtils.getBool("show_indicator");
    }

    public static void putShowBack(boolean show) {
        SharePreferenceUtils.put("show_back", show);
    }

    public static boolean getShowBack() {
        return SharePreferenceUtils.getBool("show_back");
    }

    public static void putShowTip(boolean show) {
        SharePreferenceUtils.put("show_tip", show);
    }

    public static boolean getShowTip() {
        return SharePreferenceUtils.getBool("show_tip");
    }
}
